package com.itm;

public class type {
    public static void main(String[] args) {
        int a=10;
        float b=a;
        byte c;
        c=(byte) a;

        System.out.println("int强制转换为byte的值为"+c);
        System.out.println("int自动转换为float的值为"+b);
    }
}
